/*
 * @Author: zzd993
 * @Date: 2023-05-17 13:33:48
 * @LastEditors: zzd993
 * @LastEditTime: 2023-06-08 16:42:45
 * @FilePath: \硅谷甄选vue3+ts+vite+echarts+pinia\src\main.ts
 * Copyright (c) 2023 by ZZD, All Rights Reserved.
 */
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
import router from './router'
import pinia from './store'
//配置element-plus国际化
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-expect-error
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//暗黑模式需要的样式
import 'element-plus/theme-chalk/dark/css-vars.css'

import globalComponent from '@/components'
import './permisstion'
import '@/style/index.scss'
const app = createApp(App)

// 安装自定义插件
app.use(globalComponent)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(router)
app.use(pinia)
app.mount('#app')
